<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/9/23
  Time: 14:41
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <center>
        <table border="1" rules="all">

            <tr align="center">
                <td colspan="100">
                    <font size="30">评论列表</font>
                    <a href="<c:url value='/newsServlet?method=list'/>"><button>返回新闻列表</button></a>
                </td>
            </tr>
            <tr align="center" bgcolor="#CCCCFE">
                <th>
                    评论编号
                </th>
                <th>
                    评论内容
                </th>
                <th>
                    评论人
                </th>
                <th>
                    评论时间
                </th>
            </tr>
            <c:forEach items="${list}" var="n" varStatus="aa">
                <tr bgcolor="${aa.index%2==0?'#89D0FE':''}">
                    <td>
                        ${n.id}
                    </td>
                    <td>
                            ${n.content}
                    </td>
                    <td>
                            ${n.author}
                    </td>
                    <td>
                            ${n.createdate}
                    </td>
                </tr>
            </c:forEach>

        </table>
    </center>
</body>
</html>
